package com.algorithmicTest1;

public class JumpingStairs {
    public static void main(String[] args) {
        //跳台阶的方法:
        System.out.println(getCount(20));

    }
    public static int getCount(int count){
        if(count == 1){
            return 1;
        }
        if(count == 2){
            return 2;
        }

        return getCount(count- 1) + getCount(count - 2);

    }

}
